package com.rules.admin.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rules.admin.domain.Page;
import com.rules.admin.json.Long2String;
import com.rules.admin.json.String2Long;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserPermissionParams  implements Serializable {

    @JsonSerialize(
            using = Long2String.class
    )
    @JsonDeserialize(
            using = String2Long.class
    )
    private Long targetId;
    private Integer targetType;
    private Integer mode;
    private String username;
    private Page page;

    public UserPermissionParams() {
    }
}
